package cn.chen.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hbpu
 * @since 2023-05-27
 */
@Getter
@Setter
@TableName("action")
public class Action implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("uid")
    private Integer uid;

    @TableField("gid")
    private Integer gid;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 1收藏 0未收藏
     */
    @TableField("is_collect")
    private Integer isCollect;

    /**
     * 冗余字段用户名，减少联表查
     */
    @TableField("uname")
    private String uname;

    /**
     * 商品名
     */
    @TableField("gname")
    private String gname;


}
